from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^categories/(?P<category_id>\d+)/hotskus/$',views.HotSkuListView.as_view()),
    url(r'^categories/(?P<category_id>\d+)/skus/$',views.SkuListView.as_view()),
]

#es路由
from rest_framework.routers import DefaultRouter
router = DefaultRouter()

router.register('search', views.SKUSearchViewSet, base_name='skus_search')

urlpatterns += router.urls